package com.briup.ch06;

public class Floater extends Employee{
    private int workhour;
    public Floater(String name,String gender,String birth,int workhour)
    {
        super(name,gender,birth,"临时工");
        this.workhour=workhour;
    }
    @Override
    public void computeSalary()
    {
        System.out.println(this.getType()+" "+getName()+" "+"本月工资为:"+(this.workhour*50.0)+"元");
    }
}
